﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="Admin_login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Template - Login</title>
<link href="styles/layout.css" rel="stylesheet" type="text/css" />
<link href="styles/login.css" rel="stylesheet" type="text/css" />
<!-- Theme Start -->
<link href="themes/blue/styles.css" rel="stylesheet" type="text/css" />
<!-- Theme End -->
</head>
<body>
    <form id="form1" runat="server">
    <div id="logincontainer">
    	<div id="loginbox">
        	<div id="loginheader">
            	<img src="themes/blue/img/cp_logo_login.png" alt="Control Panel Login" />
            </div>
            <div id="innerlogin">
                <asp:LoginView ID="LoginView1" runat="server">
                    <AnonymousTemplate>
                        <asp:Login ID="Login1" runat="server">
                            <LayoutTemplate>
                                <p>
                                    用&nbsp;户&nbsp;名:</p>
                                <asp:TextBox ID="UserName" runat="server" class="logininput"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                <p>
                                    密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</p>
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" class="logininput"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                    ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="ctl00$Login1">*</asp:RequiredFieldValidator>
                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="登录" ValidationGroup="ctl00$Login1"
                                    class="loginbtn" />
                            </LayoutTemplate>
                        </asp:Login>
                    </AnonymousTemplate>
                    <LoggedInTemplate>
                        当前登陆用户为：<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/NewsList.aspx"><asp:LoginName ID="LoginName1" runat="server" /></asp:HyperLink>
                        <br />
                        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="注销" 
                            Width="132px" />
                    </LoggedInTemplate>
                </asp:LoginView>            	
            </div>
        </div>
        <img src="img/login_fade.png" alt="Fade" />
    </div>
    </form>
</body>
</html>
